home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Installers / Smaller Installer 1.1 / Hook Proc Examples / SIHookProc.h
Encoding:
C/C++ Source or Header  |  1993-07-03  |  1.7 KB  |  40 lines  |  [TEXT/KAHL]

  1. /******************************************************************************
  2.     Smaller Installer © 1993 Bill Goodman, All Rights Reserved
  3. *******************************************************************************
  4.  
  5.     This header defines the Installer Hook Procedure interface.
  6.  
  7. ******************************************************************************/
  8.  
  9.  
  10. /******************************************************************************
  11.     Installer Hook Parameter Block Definition
  12. ******************************************************************************/
  13. typedef struct
  14.     {
  15.     short function;                /* Function to perform: */
  16. #define siHookSetTargetVol            1    /* Set target volume */
  17. #define siHookBeginInstall            2    /* Begin install */
  18. #define siHookEndInstall            3    /* End install */
  19.  
  20.     short targetVRefNum;            /* Volume reference number of target volume */
  21.  
  22.     short groupAPFlags;            /* Group A-P flags (MSB:P -- LSB:A) */
  23.     short groupQUSel;                /* Group Q-U selector (0:Q -- 4:U) */
  24.     short groupVZSel;                /* Group V-Z selector (0:V -- 4:Z) */
  25.  
  26.     short completionSts;            /* Completion status for EndInstall */
  27. #define siHookComplete                0    /* Install completed without error */
  28. #define siHookFileSkipped            1    /* Install completed but some files were skipped */
  29. #define siHookAborted                2    /* Install was aborted due to errors or user cancellation */
  30.  
  31.     short result;                    /* Returned result */
  32. #define siHookNoErr                    0    /* No error */
  33. #define siHookAbort                    1    /* Error - abort installation */
  34.     } SIHookParmBlk;
  35.  
  36.  
  37. /******************************************************************************
  38.     Hook Procedure Definition
  39. ******************************************************************************/
  40. typedef pascal void (*SIHookProcPtr)(SIHookParmBlk *parmBlk);